import { get, post } from '@/server/http'

// 我的页面


// 作品请求
export const getWorkListAPI = (userId) => get(`user/${userId}/Videos/page/1`)
// 动态请求
export const getDynamicListAPI = (userId) => get(`user/${userId}/Videos/page/1`)
// 动态请求/视频点赞状态
export const getDynamicVideoLikeStatusAPI = (userId, videoId) => get(`user/${userId}/isLiked/${videoId}`)

// 喜欢列表
export const getLikeListAPI = (userId, page) => get(`user/${userId}/Likes/page/${page}`)

// 视频播放页 点赞状态
export const getVideoLikeStatusAPI = (userId, videoId) => get(`user/${userId}/isLiked/${videoId}`)
// 视频播放页  点赞 + 动态-点赞
export const postVideoLikeAPI = (userId, videoId) => get(`user/${userId}/triggerLike/${videoId}`)

// 关注数量
export const getFollowNumAPI = (userId) => get(`user/${userId}/FollowersNum`)
// 粉丝数量
export const getFanNumAPI = (userId) => get(`user/${userId}/FansNum`)
// 获赞数量
export const getLikeNumAPI = (userId) => get(`user/${userId}/byLikesNum`)
// 喜欢数量
export const getLikeVideoNumAPI = (userId) => get(`user/${userId}/LikesNum`)
// 动态数量
export const getDynamicNumAPI = (userId) => get(`user/${userId}/VideosNum`)

// 编辑个人信息
export const editUserInfoAPI = (userId, data) => post(`user/${userId}/modifyUserInfo`, data)

// 编辑个人信息 - 更新头像
export const updateAvatarAPI = (userId, data) => post(`user/${userId}/uploadAvatar`, data)


//  我关注的 列表
export const getMyFollowingsAPI = (userId) => get(`user/${userId}/Followers/page/1/${userId}`)
//  我关注的 列表/ 关注/取消关注
export const followMyFollowingAPI = (userId, followingId) => get(`user/${userId}/triggerFollow/${followingId}`)






